package com.jdz.controller;


import com.jdz.dao.FlyDao;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class FlyController {
    @Resource
    private FlyDao flyDao;

    @GetMapping(value = "/fly/test")
    public String test(){
        return "hello world";
    }
    @GetMapping(value = "/fly/freq")
    public double x(){
        System.out.println("###########################");
        return flyDao.getFreq(1);
    }


}
